package com.zjzywl.iotSendthings.util;

import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * @author zengxiaojie
 * 人脸识别DTO-用于与前端交互
 */
public class FaceIdentifyDTO implements Serializable{

	private static final long serialVersionUID = -5124205356723390038L;

	private String source;

	/**
	 * 人脸照片base64
	 */
	private String facePhotoData;
	
	/**
	 * 身份证照片base64
	 */
	private String idCardPhotoData;

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getFacePhotoData() {
		return facePhotoData;
	}

	public void setFacePhotoData(String facePhotoData) {
		this.facePhotoData = facePhotoData;
	}

	public String getIdCardPhotoData() {
		return idCardPhotoData;
	}

	public void setIdCardPhotoData(String idCardPhotoData) {
		this.idCardPhotoData = idCardPhotoData;
	}

	public boolean isNull() {
		if ( StringUtils.isEmpty( getFacePhotoData())&& StringUtils.isEmpty(getIdCardPhotoData())) {
			return true;
		}
		return false;
	}

}
